package com.suitsoft.bdms.commos;


import org.springframework.security.core.userdetails.User;
import org.springside.modules.security.springsecurity.SpringSecurityUtils;

/**
 * 登录用户信息帮助类.
 * 
 */
public class UserHolder {
	/**
	 * 默认构造器.
	 */
	private UserHolder() {
	}

	/**
	 * 返回当前登录用户对象
	 */
	public static LoginUser getLoginUser() {
		User user = SpringSecurityUtils.getCurrentUser();
		return (LoginUser) user;
	}
}
